import { createMemoryHistory, createRouter } from "vue-router";
import Home from '../components/home.vue'
import About from '../components/about.vue'
//对路由进行一个基础的配置。
const routes = [
    {
        path: '/',
        name: 'Home',
        component: Home
    },
    {
        path: '/about',
        name: 'About',
        component: About
    }
]
const router = createRouter({
    history: createMemoryHistory(),
    routes,
})
export default router